lib/repo: Fix handling of missing summary files when downloading
authorPhilip Withnall <withnall@endlessm.com>
Tue, 8 Aug 2017 14:39:34 +0000 (15:39 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 8 Aug 2017 15:33:45 +0000 (15:33 +0000)
commit1672e2eee058d0fe41ed102ca310a9634d36572f
tree078e485e5c9361cec09bd96e58b3b6e579c77137
parent86dce4b252005949a4f9a4f7b4666982b12a84d4
lib/repo: Fix handling of missing summary files when downloading

The API for downloading a summary file can legitimately return NULL for
the summary file contents when it returns TRUE (success). This indicates
an error 404 — the summary file was not found.

Two call sites were not handling that correctly, which was causing later
assertion failures.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #1061
Closes: #1065
Approved by: cgwalters
src/libostree/ostree-repo-finder-avahi.c
src/libostree/ostree-repo-pull.c